package com.bjc.service.impl;

import com.bjc.pojo.Student;
import com.bjc.repository.StudentRepository;
import com.bjc.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: ssmpractice
 * @description:
 * @author: bjc
 * @create: 2020-08-31 21:53
 */
@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentRepository studentRepository;

    @Override
    public int addStudent(Student student) {
        return studentRepository.add(student);
    }
}
